//
//  NoticeMainCell.swift
//  ModernFoodWebsite
//
//  Created by apple on 16/5/30.
//  Copyright © 2016年 Lonnie. All rights reserved.
//

import UIKit

class NoticeMainCell: UITableViewCell {
    var contentImageView = UIImageView()
    var button = UIButton()
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style:style,reuseIdentifier:reuseIdentifier)
        initUI()
    }
    private func initUI() {
        contentView.addSubviews([contentImageView,button])
        
        contentImageView.snp_makeConstraints { (make) in
            make.edges.equalTo(contentView)
        }
        
        button.snp_makeConstraints { (make) in
            make.center.equalTo(contentView)
            make.size.equalTo(CGSizeMake(124.5, 30.5))
        }
        button.backgroundColor = UIColor(red: 0x1a/255.0, green: 0xad/255.0, blue: 0x55/255.0, alpha: 10.5)
        button.titleLabel?.textColor = UIColor.whiteColor()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
 
 

}
